﻿using Abp.Application.Services.Dto;
using AppFramework.ApiClient;
using AppFramework.DinosaursParkMes.ProductionReturn.DTO;
using AppFramework.DinosaursParkMes.TicketTask.DTO;
using AppFramework.Localization.Dto;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace AppFramework.DinosaursParkMes.ProductionReturn
{
    public class ProductionReturninfoAppService : ProxyAppServiceBase, IProductionReturninfoAppService
    {
        public ProductionReturninfoAppService(AbpApiClient apiClient) : base(apiClient)
        {
        }

        public async Task<int> AddProductionReturn(ProductionReturnRequestDTO dto)
        {
            await ApiClient.PostAsync(GetEndpoint(nameof(AddProductionReturn)), dto);
            return 1;
        }

        public Task<int> DeleteProductionReturn(string id)
        {
            throw new NotImplementedException();
        }

        public async Task<PagedResultDto<ProductionReturnResponseDTO>> ProductionReturnList()
        {
           return await ApiClient.GetAsync<PagedResultDto<ProductionReturnResponseDTO>>(GetEndpoint(nameof(ProductionReturnList)));
        }

        public Task<List<GroupMemberResponseDTO>> SelectMember(int id)
        {
            throw new NotImplementedException();
        }

        public dynamic SelectWorker(string code)
        {
            throw new NotImplementedException();
        }

        public async  Task<int> UptStates(UptStatesId dto)
        {
            await ApiClient.PostAsync(GetEndpoint(nameof(UptStates)),dto);
            return 1;
        }

        public Task<List<TicketTaskSelectResponseDTO>> WorkOrderShow()
        {
            throw new NotImplementedException();
        }
    }
}
